#include "myresources.h"

MyResources::MyResources()
{
    OProblems[0] = "等待键盘输入事件";
    OProblems[1] = "等待磁盘输入";
    OProblems[2] = "等待打印机";
    OProblems[3] = "等待打印机";
    OProblems[4] = "等待磁盘输入";

    PCB newPro0("Pro0","0000",nullptr,nullptr,10,3,1,30);
    randomPCB[0].copyPCB(randomPCB[0],newPro0);

    PCB newPro1("Pro1","0001",NULL,NULL,6,9,1,35);
    randomPCB[1].copyPCB(randomPCB[1],newPro1);

    PCB newPro2("Pro2","0002",NULL,NULL,17,1,1,37);
    randomPCB[2].copyPCB(randomPCB[2],newPro2);

    PCB newPro3("Pro3","0003",NULL,NULL,4,4,1,42);
    randomPCB[3].copyPCB(randomPCB[3],newPro3);

    PCB newPro4("Pro4","0004",NULL,NULL,30,10,1,11);
    randomPCB[4].copyPCB(randomPCB[4],newPro4);

}
